import socket

def connect_server():
    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    s.connect(("192.168.145.1",6001))
    s.sendall(b'hello world')
    return s

connect_server()